import { ProductDetail } from './product-detail';

/**
 * Created by eku_mac on 9/6/17.
 */

import { ValuePair } from './value-pair';
import { GroupNote } from './group-note'
import { KeepaTime } from './KeepaTime';

//产品详情页面
export class GroupDetail {

  dataReady: boolean;
  title:     string;
  // asin_list: string[['asin', 'role']];
  // role_list: string[]; // 每个产品的角色,此数组与asin_list一一对应, 目前定义的角色有, Our|Target|Follower|BestSeller，用户给产品自定义角色

  product_data_list: ProductDetail[];

  //下面这些数据可以单独API去获取
  //other data:
  notes: GroupNote[];
  tags:  string[];


    static ParseFromJason( str: JSON): GroupDetail {
      return new GroupDetail();
    }

    public switchDays(days: number) {
      if (days == 0) {
        // code statement
      } else if (days == 7) {
        // code statement
      } else if (days == 30) {
        // code statement
      } else if (days == 90) {
        //code statement
      }
    }



}
